<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>WMS</title>
		<link href="/css/backstage.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="/js/jquery.min.js"></script>
		<script type="text/javascript" src="/js/backstage.js"></script>
		<link href="/css/blitzer/jquery-ui.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript" src="/js/jquery-ui.js"></script>
		<script>

</script>
		<style>
html,body {
	text-align: center;
	border: none;
	background: none
}

#content {
	width: 20cm;
	text-align: left;
	position: relative;
	margin-left: auto;
	margin-right: auto;
	background: white;
	height: 100%
}

.contentTop {
	height: 80px;
	line-height: 80px;
	width: 100%;
	text-align: left;
	font-size: 15px;
	font-weight: bold;
}

.contentBottom {
	height: 50px;
	line-height: 50px;
	width: 100%;
	text-align: right;
}

.list {
	width: 20cm;
	max-height: 28cm;
	border-collapse: collapse;
	margin-left: auto;
	margin-right: auto;
}

.list tr {
	height: 30px
}

.list th,.list td {
	border: 1px solid black;
	text-align: center;
}

.width1 {
	width: 80px;
	text-align: right;
}

.width2 {
	width: 170px;
}

.width3 {
	width: 100px;
}

.width4 {
	width: 150px;
}

.center {
	text-align: center
}

.action {
	cursor: pointer;
	marin: 2px
}

.editTable td {
	padding: 5px;
	text-align: left;
}

.barcode {
	display: inline-block;
	zoom: 1; *
	display: inline;
	margin-left: 30px;
	margin-bottom: 0px;
	overflow: hidden;
	height:65px;
	margin-top: 10px
}

.printTitle {
	display: inline-block;
	zoom: 1; *
	display: inline;
	font-size: 30px;
	margin-left: 0px;
	float:right;
}
.title_inner{float:right;line-height:20px;font-size:12px;padding:15px 0 0 10px;}
.head_foot_block{
	height: 100px;
    line-height: 50px;
    width: 100%;	
}
.page_break{height:2px;line-height:2px;font-size:0px;}
.search_div {
    padding: 5px 0 5px 50px;
}
td b{font-size:16px;}
</style>
<script type="text/javascript">

//<{$lang.operation}><{$lang.tip}>s
function alertTip(tip) {
    $('<div title="<{$lang.order}><{$lang.exception}><{$lang.tip}>[<{$lang.print_close_tip}>]" style="text-align:left;">' + tip + '</div>').dialog({    	
		modal:true,
		show:"slide",
		width:600,
        buttons: {
            '<{$lang.close}>': function() {
                $(this).dialog("close");
            }
        }
    });
}
$(function(){
	var errlist = <{$err_orders}>;
	var html = "";
	$.each(errlist,function(k,v){
		html+=v.err+"<br/>";
	});
	if(html!=""){
		alertTip(html);
	}
});
</script>
	</head>
	<body>
		<div id="content">
			<{if isset($result.orders)}> 
			<{assign var="itemCount" value="0"}>
			<{foreach from=$result.orders item=order key=key name=order}>	
			<div class="head_foot_block" >
			<{if isset($order.customer_logo)}>
			<img src="<{$order.customer_logo}>" alt="my logo" height="75"/>
			<{/if}>
			</div>
			
			<div class="contentTop">	
				<{if $order.page==0}>			
				<{$itemCount = $itemCount+1}>
				<{/if}>
				<div class="barcode">
					<{if $order.page==0}>	
					<img src="/product/receiving/barcode/code/<{$order.orders_code}>"/>
					<{/if}>
				</div>
				<div class="printTitle">
					<{$lang.pickup_code}><input type="hidden" value='<{$result.code}>'>
					<div  class='title_inner'>
						<div style="width:180px;text-align:right;">
							&nbsp;<{$lang.order}>:<{$itemCount}>/<{$result.orders_count}><br/>
							<{$lang.pickup_user}>：<{$order.peihuo}><br/>
							<{$lang.pickup_goods}><{$lang.code}>：<{$result.code}>
						</div>
					</div>
					<div  class='title_inner'>
						<div >
							<{$lang.customer_code}>:<{$order.customer_id}>
						</div>
						<div>
							<{$lang.date}>:<{$result.date}>
						</div>
					</div>
					
					
				</div>
				
			</div>
			<table class="list">
				<tr>
					<td>
						<{$lang.orders_code}>
					</td>
					<td colspan='1'>
						<{$order.orders_code}>
					</td>
					<td>
						<strong><{$lang.description}></strong>
					</td>
					<td colspan='3'>
						<b><{$order.remark}></b>
					</td>
					
				</tr>	
				<tr>
					<td>
						<{$lang.packaging_material}>
					</td>
					<td colspan='1'>
						<{$order.pp_name}>
					</td>
					<td>
						<{$lang.shipping_method}>
					</td>
					<td colspan='3' style="text-align:left;">
						&nbsp;&nbsp;<{$order.shipping_method}>
					</td>
					
				</tr>				
				<tr>
					<th width="10%">
						<{$lang.ws_code}>
					</th>
					<th width="20%">
						<{$lang.sku}>
					</th>
					<th width="10%">
						<{$lang.quantity}>
					</th>
					<th width="5%">
						<{$lang.category}>
					</th>
					<th>
						<{$lang.name}>
					</th>
					<th width="10%">
						<{$lang.picture}>
					</th>
				</tr>
				<{foreach from=$order.product_batch item=bantch key=key name=bantch}>
					
					<tr>
						<td>
							<{$bantch.ws_code}>
						</td>
						<td>
							<b><{$bantch.product_sku}>&nbsp;&nbsp;&nbsp;</b>
						</td>
						<td>
							<b><{$bantch.take}></b>
						</td>
						<td>
							<{$bantch.poc_value_shortname}>
						</td>
						<td>
							<{$bantch.product_title}>
						</td>
						<td>
							<img src="<{$bantch.pic}>" style="width:75px;height:75px;">
						</td>
					</tr>
					
				<{/foreach}>
			</table>
			<{if isset($order.customer_intro)}>
			<div style="font-size:20px;line-height:30px;padding:10px 5px 0px;">
				<{$order.customer_intro}>
			</div>
			<{/if}>
						
			<div class="page_break" style="<{if !$smarty.foreach.order.last}>page-break-after:always<{/if}>"></div>
			<{/foreach}> 
			<{/if}>
		</div>

	</body>
</html>